<?php
namespace app\walletyhbbadmin\controller;
use Think\Db;
use Think\request;
class Explain extends AdminBase {
    public function index()
    {
        $res = DB::name('config')->where('name',explain_content)->find();
        $this->assign('list',$res);
        return $this->fetch('explain/index');
    }
    public function updateIndex()
    {
        $data['value'] = input('content');
        $arr = DB::name('config')->where('name',explain_content)->update($data);
        $a = '修改代理说明';
        $this->daily($a);
        $this->success('操作成功');
    }
}